package com.asj.house.client;

import com.asj.house.config.feign.HouseSubscribeFeignConfig;
import com.asj.house.returns.RespEntity;
import com.asj.house.vo.param.SubscribeParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "houseSubscribeClient", url = "${house.url}", configuration = HouseSubscribeFeignConfig.class)
public interface HouseSubscribeClient {

    /**
     * 预约看房
     * @return
     */
    @PostMapping("/house-subscribe/order")
    RespEntity orderHouse(@RequestBody SubscribeParam subscribeParam);
}
